<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>盒模型实验</title>
    <link rel="stylesheet" href="css/experiment.css">
</head>

<body>
    <h1 class="lg" data-hover="前端课程实验之盒模型相关属性实验">前端课程实验之盒模型相关属性实验</h1>
    <div id="app" class="container">
        <div class="ctrl">
            
        </div>
        <div class="prev">
            <div class="k" style="width:{{w}}px;height:{{h}}px"></div>
        </div>
    </div>
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>

    <div id="app">{{ w }}</div>
    
    <script>
      const { createApp } = Vue
      
      createApp({
        data() {
          return {
            w: 'Hello Vue!'
          }
        }
      }).mount('#app')
    </script>
</body>
</html>